<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
<title>Hello APP</title>
<link rel="stylesheet" type="text/css" href="../../css/aui-flex.css" />
<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
<link rel="stylesheet" type="text/css" href="../../css/common.css" />
<style>
	#footer {
		background-color: #FFF;
		height: 1rem;
		padding: 0 0.75rem;
	}
	#footer > div {
		height: 1rem;
		line-height: 1.9rem;
		border: 1px solid #E73450;
		text-align: center;
		width: 47%;
		border-radius: 0.2rem;
		color: #E73450;
	}
	#footer > div.right {
		background: #E73450;
		color: #fff;
	}
</style>
</head>

<body>
	<header class="aui-bar aui-bar-nav aui-bar-light" id="header">
		<div class="aui-pull-left back" tapmode onClick="api.closeWin();"></div>
		<div class="aui-title">口令详情</div>
	</header>
	<div class="btmFix aui-border-t aui-flex-col aui-flex-between aui-flex-middle" id="footer">
		<!-- <div class="left" id="left" tapmode onclick="copy();">复制购买口令</div>
		<div class="right" id="right" tapmode onclick="share();">分享给好友</div> -->
	</div>
</body>
<script type="text/javascript" src="../../script/import.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/clipboard.js"></script>

<script type="text/javascript">
    apiready = function() {
        api.parseTapmode();
		var header = $api.byId('header');
        $api.fixStatusBar(header);
        var headerH = $api.offset(header).h;
		var footerH = $api.offset($api.byId('footer')).h;
        api.openFrame({
            name: 'kouling_frm',
            url: 'kouling_frm.html',
            rect: {
                x: 0,
                y: headerH,
                w: 'auto',
                h: 'auto',
								marginBottom: footerH
            },
						bounces: true,
            pageParam: api.pageParam
        });
	};
	function copy(){
		api.execScript({
			frameName: 'kouling_frm',
			script:'copyCode2();'
		});
	}

	function share(){
		api.execScript({
			frameName: 'kouling_frm',
			script:'openShare();'
		});
	}

</script>
</html>
